package controller;

import util.HibernateUtil;

public class MainController {

	public static void main(String[] args) {
		LogonController logonController = new LogonController();
		MenuController menuController = new MenuController();

		try {
			// start hibernate session
			HibernateUtil.buildSessionFactory();

			logonController.logon();
			menuController.showMenu(logonController.getDto());

		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
